/**
 * @ Author: luoqi
 * @ Create Time: 2024-07-23 22:25
 * @ Modified by: luoqi
 * @ Modified time: 2024-07-23 22:31
 * @ Description:
 */

#ifndef _TIMER_H
#define _TIMER_H

typedef enum {
    TIMER_DEV_TIM1, 
} TimerDev;

typedef enum {
    TIMER_CHANNEL_CH1,
    TIMER_CHANNEL_CH2,
    TIMER_CHANNEL_CH3,

} TimerChannel;

int timer_pwm_start(TimerDev timer, TimerChannel channel);

int timer_pwm_stop(TimerDev timer, TimerChannel channel);

int timer_pwm_set(TimerDev timer, TimerChannel channel, int duty);

#endif
